// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 36;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "Not far ahead, you see the welcoming walls of a fortress of Haven. Your lands are pushed back in this corner of the Dhagan valley. You have claimed a large patch of rare arable land, and you are carefully working every inch of it.";
	text2 = "This fort shows the signs of neglect you have come to expect, but the guards are armed and alert. There are lots of brigands in this region, hunting for easy prey.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "There were a few brigands on the east shore of the river, spying on your fort. They were easy to dispatch.";
	text2 = "Now that they are gone, you search their supplies. Not much of value, but you find a few coins and a chunk of deep metal.";
	code =
		sf(100 + this_sec,2,1);
		change_coins(21,1);
		change_crafting(0,0,0,1,0);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "This used to be a settlement by the bridge, offering a trading post and safe refuge for passing caravans. It only recently became a ruin. The raiders of the Low Dhaga made short work of it.";
	text2 = "A fresh reminder of the harm this new breed of raiders can do. As if their trying to kill you wasn't evidence enough.";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You see a lone figure running through the dunes. It's hard to identify it. The wind is kicking up too much dust.";
	text2 = "When the figure gets close enough to see you, it turns and runs toward you.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Intercept the figure.";
	text1 = "You get close to the hooded figure. The lone person runs up to you and lowers her hood. You see that she is a young woman, and she is terrified.";
	text2 = "Before you can talk to her, a band of armed Dhagan men come into view, running out of a cluster of sand dunes. Their weapons aren't drawn, but they are very intent on confronting you.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Flee.";
	text1 = "You decide to be cautious and just run away. Later, you look back and see a band of Dhagan warriors, witnesses to your cowardice. You shrug and keep running. The lone figure is nowhere to be seen.";
	action = END_TALK;
	code =
		ro_faction(-2);
	break;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "See what they want.";
	text1 = "While they approach, you try to talk to the young woman. She is too out of breath to talk.";
	text2 = "The Dhagan men approach you. _She is of our clan. You will return her to us._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "(To the men.) _Why should she go with you?_";
	text1 = "_She is of our clan. She is young. She is commanded by us. It is our way, allowed by Haven. She will return with us._";
	text2 = "";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "(To her.) _Why are you out here?_";
	text1 = "She turns her back on the men. _They will have me marry. I do not wish to. I go to the oasis for refuge. Then to [F3]. I will seek my fortune in another province._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_What happens if she goes back with you?_";
	text1 = "A man says, _She will do her duty to the clan. Her hand is pledged. The deal is made. She will not make liars of us._";
	text2 = "She shouts, _I will not go!_";
	text3 = "Another man says, _See? This is Haven's influence on us. Its corruption._";
	
begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_This is not my business._";
	text1 = "The woman runs up and grabs your arm. _Do not send me back with them! It is not Haven's way! It is not justice! The queen would not approve._";
	text2 = "She is clinging to you. Firmly. Your involvement has been forced.";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_I think I need to make a ruling here._";
	text1 = "The woman runs up to you. _Thank you, mighty Haven warrior! Do not send me back with them! It is not Haven's way! It is not justice! The queen would not approve._";
	text2 = "Actually, Queen Sharyn would not want you to anger the Rokaj just to help one person. But she isn't here.";
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_She was going to an oasis?_";
	text1 = "A man spits. _The refuge for corrupted women, to the south. Protected by Haven!_";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_We need to come up with a reasonable compromise._";
	text1 = "All of them look at you incredulously. Apparently, nobody in this situation has any interest in compromises.";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_I will not anger the Rokaj. She must return to her clan._";
	text1 = "The woman turns and tries to run. The men grab her. One of them said, _Thank you for justice, Haven. You understand our ways. Truly, the Ro's blood flows in your veins. Others will hear of this._";
	text2 = "They drag her off.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(3);
		ro_faction(4);
		queen_faction(2);
	break;
			
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_I am forced to anger the Rokaj. I must let her go free._";
	text1 = "A man walks up to you, chest to chest, and sneers. _They say you have Ro blood. I do not believe it. You are a corrupted outsider._ The men turn and leave.";
	text2 = "You look for the woman, to see what she has to say. She fled the moment she had a chance.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
		violence(-3);
		ro_faction(-4);
		queen_faction(-2);
	break;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				